package com.cn.order.controller;

import com.cn.order.entity.Order;
import com.cn.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {
    @Autowired
    private OrderService orderService;
    /*@Get http*/
    @RequestMapping("/create")
    String createOrder(Order order){
        orderService.create(order);
        return "OK";
    }

}
